package com.sixth.fign;

import com.sixth.entity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "education-systems")//调用的昵称
public interface PermissionFeign {

    @GetMapping("/system/api/permission/getPermissionByUserid/{userid}")
    public List<Permission> getPermissionByUserid(@PathVariable String userid);
}
